projects
/
statsmodels.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cac356
)
[PATCH] Simplified commit
author
thequackdaddy
<pquack@gmail.com>
Wed, 16 Nov 2016 20:25:19 +0000
(14:25 -0600)
committer
Ole Streicher
<olebole@debian.org>
Mon, 26 Dec 2016 17:33:56 +0000
(17:33 +0000)
Gbp-Pq: Name up_3239.patch
statsmodels/tools/grouputils.py
patch
|
blob
|
history
diff --git
a/statsmodels/tools/grouputils.py
b/statsmodels/tools/grouputils.py
index 8e91bbacb625319c6542e23c32a19176144ce79b..481ee99d1f3894754e83aceb1d1cda3ecc944c2f 100644
(file)
--- a/
statsmodels/tools/grouputils.py
+++ b/
statsmodels/tools/grouputils.py
@@
-403,6
+403,7
@@
class Grouping(object):
"""
# TODO: refactor this
groups = self.index.get_level_values(level).unique()
+ groups = np.array(groups)
groups.sort()
if isinstance(self.index, MultiIndex):
self.slices = [self.index.get_loc_level(x, level=level)[0]